set logoWidth to the width of cast gLogoAnimationStart / 2
set logoHeight to the height of cast gLogoAnimationStart / 2
if gEnterPathDirection = 1 then
set gStartingPoint to point(the left of gDisplayArea, the top of gDisplayArea) - point(0, logoHeight)
else
if gEnterPathDirection = 2 then
set gStartingPoint to point(the left of gDisplayArea - ((the left of gDisplayArea - the right of gDisplayArea) / 2), the top of gDisplayArea) - point(0, logoHeight)
else
if gEnterPathDirection = 3 then
set gStartingPoint to point(the right of gDisplayArea, the top of gDisplayArea) - point(0, logoHeight)
else
if gEnterPathDirection = 4 then
set gStartingPoint to point(the left of gDisplayArea, the bottom of gDisplayArea - ((the bottom of gDisplayArea - the top of gDisplayArea) / 2)) - point(logoWidth, 0)
else
if gEnterPathDirection = 5 then
set gStartingPoint to gCenterStage
else
if gEnterPathDirection = 6 then
set gStartingPoint to point(the right of gDisplayArea, the bottom of gDisplayArea - ((the bottom of gDisplayArea - the top of gDisplayArea) / 2)) - point(-logoWidth, 0)
else
if gEnterPathDirection = 7 then
set gStartingPoint to point(the left of gDisplayArea, the bottom of gDisplayArea) - point(0, -logoHeight)
else
if gEnterPathDirection = 8 then
set gStartingPoint to point(the right of gDisplayArea - ((the right of gDisplayArea - the left of gDisplayArea) / 2), the bottom of gDisplayArea) - point(0, -logoHeight)
else
if gEnterPathDirection = 9 then
set gStartingPoint to point(the right of gDisplayArea, the bottom of gDisplayArea) - point(0, -logoHeight)
end if
end if
end if
end if
end if
end if
end if
end if
end if
if gExitPathDirection = 1 then
set gEndingPoint to point(the left of gDisplayArea, the top of gDisplayArea) - point(0, logoHeight)
else
if gExitPathDirection = 2 then
set gEndingPoint to point(the left of gDisplayArea - ((the left of gDisplayArea - the right of gDisplayArea) / 2), the top of gDisplayArea) - point(0, logoHeight)
else
if gExitPathDirection = 3 then
set gEndingPoint to point(the right of gDisplayArea, the top of gDisplayArea) - point(0, logoHeight)
else
if gExitPathDirection = 4 then
set gEndingPoint to point(the left of gDisplayArea, the bottom of gDisplayArea - ((the bottom of gDisplayArea - the top of gDisplayArea) / 2)) - point(logoWidth, 0)
else
if gExitPathDirection = 5 then
set gEndingPoint to gCenterStage
else
if gExitPathDirection = 6 then
set gEndingPoint to point(the right of gDisplayArea, the bottom of gDisplayArea - ((the bottom of gDisplayArea - the top of gDisplayArea) / 2)) - point(-logoWidth, 0)
else
if gExitPathDirection = 7 then
set gEndingPoint to point(the left of gDisplayArea, the bottom of gDisplayArea) - point(0, -logoHeight)
else
if gExitPathDirection = 8 then
set gEndingPoint to point(the right of gDisplayArea - ((the right of gDisplayArea - the left of gDisplayArea) / 2), the bottom of gDisplayArea) - point(0, -logoHeight)
else
if gExitPathDirection = 9 then
set gEndingPoint to point(the right of gDisplayArea, the bottom of gDisplayArea) - point(0, -logoHeight)
end if
end if
end if
end if
end if
end if
end if
end if
end if
updateAnimObjects(#exitPreview)
updateAnimObjects(#holdPreview)
updateAnimObjects(#enterPreview)
resetAnimationObjects()
cursor(-1)
callAnimEngine()
end
on updatePreview
if gbCanAnimate and not gbPaused then
if gAnimationStage = #enter then
if (gEnterTime = 0) or (the pbPauseState of getaProp(gAnimationObjects, cLogoEnterChannel) = 1) then